using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Generalization
{
    /// <summary>
    /// <para>Aggregate Polygons</para>
    /// <para>Combines polygons within a specified distance to each other.</para>
    /// <para>将彼此之间指定距离内的多边形组合在一起。</para>
    /// </summary>    
    [DisplayName("Aggregate Polygons")]
    public class AggregatePolygons : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AggregatePolygons()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_aggregation_distance">
        /// <para>Aggregation Distance</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public AggregatePolygons(object _in_features, object _out_feature_class, string? _aggregation_distance)
        {
            this._in_features = _in_features;
            this._out_feature_class = _out_feature_class;
            this._aggregation_distance = _aggregation_distance;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Aggregate Polygons";

        public override string CallName => "management.AggregatePolygons";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_features, _out_feature_class, _aggregation_distance, _minimum_area, _minimum_hole_size, _orthogonality_option.GetGPValue(), _barrier_features, _out_table, _aggregate_field];

        /// <summary>
        /// <para>Input Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Aggregation Distance</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Aggregation Distance")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public string? _aggregation_distance { get; set; }


        /// <summary>
        /// <para>Minimum Area</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Minimum Area")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _minimum_area { get; set; } = null;


        /// <summary>
        /// <para>Minimum Hole Size</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Minimum Hole Size")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _minimum_hole_size { get; set; } = null;


        /// <summary>
        /// <para>Preserve orthogonal shape</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Preserve orthogonal shape")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _orthogonality_option_value _orthogonality_option { get; set; } = _orthogonality_option_value._false;

        public enum _orthogonality_option_value
        {
            /// <summary>
            /// <para>ORTHOGONAL</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ORTHOGONAL")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>NON_ORTHOGONAL</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("NON_ORTHOGONAL")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Barrier Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Barrier Features")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _barrier_features { get; set; } = null;


        /// <summary>
        /// <para>Output Table</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Table")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_table { get; set; } = null;


        /// <summary>
        /// <para>Aggregate Field</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Aggregate Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _aggregate_field { get; set; } = null;


        public AggregatePolygons SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}